const app = getApp()
const $api = require('../../utils/api.js').API;

Page({
    data: {
        list:[]
    },
    onLoad: function(){
        this.getMatchJob();
    },
    getMatchJob:function(){
        var data = {
            'uid':wx.getStorageSync('uid')
        }
        var that = this
        $api.get('company/push',data).then(res => {
            //请求成功
           that.setData({
            list:res.data.data
           })
        })
    },
    toWorkerDetail:function(e){
        var id = e.currentTarget.dataset.uid
        wx.navigateTo({
            url: '/pages/job/info?uid='+id
        })
    },
    onShareAppMessage: function() {
        return {
            title: "招人才--天意美业直通车",
            path: "/pages/index/index?puid="+wx.getStorageSync("uid")
        };
    }
});